<?php


echo '<ul id="pagination-clean">';

if(isset($this->previous)){
	echo '<li class="previous"><a href="' . $this->url(array('page' => $this->first)).  '">&laquo;</a></li>';
} else {
	echo '<li class="previous-off">&laquo;</li>';
}


if(isset($this->previous)) {
	echo '<li class="previous"><a href="' . $this->url(array('page' => $this->previous)). '">&lt;</a></li>';
}

foreach($this->pagesInRange as $page)
{ 
	if($this->current != $page){
		echo '<li><a href="'. $this->url(array('page' => $page)). '">' . $page . '</a></li>';
     }
	 else{
  		echo '<li class="active">' . $page . '</li>';
  		
  		
	}			
			
}

if(isset($this->next)) {
	echo '<li class="next"><a href="' . $this->url(array('page' => $this->next)). '">&gt;</a></li>';
}


if(isset($this->next)){
	echo '<li class="next"><a href="' . $this->url(array('page' => $this->last)). '">&raquo;</a></li>';
} else {
 	echo '<li class="next-off">&raquo;</li>';
}


echo '<li class="active">(' . $this->current . ' of '  . $this->pageCount .  ')</li>';


echo '</ul>';
